package com.shoesmail.annotation;

import com.shoesmail.enums.RoleEnum;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author ：CDB
 * @description：校验注解
 * @date ：2025/9/17 9:18
 */
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface JwtToken {
    boolean required() default true;

    RoleEnum role() default RoleEnum.USER;
}












